﻿using System;
using HPITSSModel;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HPITSSBLL;


namespace HPITSS
{
    public partial class EditTruck : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            EditTruckInfo();
        }
        /// <summary>
        /// 编辑要修改的车辆信息
        /// </summary>
        public void EditTruckInfo()
        {
            string TruckID = Request.QueryString["TruckID"];
            HPITSSModel.Truck truck = HPITSSBLL.TruckBLL.EdinTruck(TruckID);
            txtTruckID.Value = truck.TruckID.ToString();
            txtBuyDate.Value = truck.BuyDate.ToString();
            txtFK_TeamID.Value = truck.FK_TeamID.ToString();
            txtLength.Value = truck.Length;
            txtRemark.Value = truck.Remark;
            txtTonnage.Value = truck.Tonnage.ToString();

        }
    }
}